<div id="nav">
<ul>
  <li class="page_item {% ifequal keyword "main" %} current_page_item{% endifequal %} ">
	<a href="/">Main</a>
  </li>
  {% for cat in categories.1 %}
  <li class="page_item{% ifequal keyword {{ cat.category_url }} %} current_page_item{% endifequal %}">
	<a href="/category/{{ cat.category_url }}/" id="{{cat.key}}" title="{{cat.category_name}}">{{cat.category_name}}</a>
  </li>
  {% endfor %}
  <li class="page_item">
	<a href="/admin/">Admin</a>
  </li>
</ul>
</div>